<template>
<div class="welcome">
  <!-- 统计按钮 -->
    <el-row :gutter="20">
  <el-col :span="16"><div>
    <el-row :gutter="20">
    <!-- 账号管理 -->
  <el-col :span="8"><div class="grid-zhanghao">
    <div class="bt_icon"><img src="../../assets/images/icon/icon_zhanghao.png" alt=""></div>
    <div class="bt_text">
      <div class="bt_data">8</div>
      <div class="bt_title">账号管理</div>
    </div>
  </div></el-col>
  <!-- 新闻管理 -->
  <el-col :span="8"><div class="grid-news">
        <div class="bt_icon"><img src="../../assets/images/icon/icon_news.png" alt=""></div>
    <div class="bt_text">
      <div class="bt_data">157</div>
      <div class="bt_title">信息管理</div>
    </div>
  </div></el-col>
  <!-- 留言管理 -->
  <el-col :span="8"><div class="grid-liuyan">
            <div class="bt_icon"><img src="../../assets/images/icon/icon_liuyan.png" alt=""></div>
    <div class="bt_text">
      <div class="bt_data">88</div>
      <div class="bt_title">留言管理</div>
    </div>
  </div></el-col>
</el-row>
<!-- 网站通告 -->
    <el-row :gutter="20">
  <el-col>
    <div class="tonggao">
      <h3>网站公告：关于五一假期放假的公告！<span style="float:right; font-weight:400; margin-right: 20px;">2022-05-11 15:20:18</span></h3>
    </div>
    </el-col>
</el-row>
<!-- 新闻管理 -->
 <el-row :gutter="20">
  <el-col>
    <!-- 新闻资讯 -->
    <div class="news">
      <div class="mokuai_title">
              <el-row :gutter="20">
      <el-col :span="4"><div class="home_title">新闻资讯</div></el-col>
      <el-col :span="20"><div class="home_text">查看更多>></div></el-col>
      </el-row>
      </div>
      <div class="mokuai_contents">
        <!-- 信息列表 -->
           <el-table
    :data="tableData"
    height="550"
    style="width: 100%">
    <el-table-column
      prop="shunxu"
      label="序号"
      width="180">
    </el-table-column>
    <el-table-column
      prop="name"
      label="姓名"
      width="180">
    </el-table-column>
    <el-table-column
      prop="date"
      label="发布时间">
    </el-table-column>
        <el-table-column
      prop="address"
      label="操作">
    </el-table-column>
  </el-table>
      </div>
    </div>
    </el-col>
</el-row>
<!-- 合作企业 -->
 <el-row :gutter="20">
  <el-col>
    <div class="hezuo">
    <div class="mokuai_title">
      <el-row :gutter="20">
      <el-col :span="4"><div class="home_title">合作企业</div></el-col>
      <el-col :span="20"><div class="home_text">查看更多>></div></el-col>
      </el-row>
    </div>
    <div class="hezuo_logo">
      <ul>
        <li><img src="../../assets/images/hezuo/fq_logo.png"></li>
        <li><img src="../../assets/images/hezuo/ls_logo.png"></li>
        <li><img src="../../assets/images/hezuo/qy_logo.png"></li>
        <li><img src="../../assets/images/hezuo/fq_logo.png"></li>
        <li><img src="../../assets/images/hezuo/fq_logo.png"></li>
         <li><img src="../../assets/images/hezuo/fq_logo.png"></li>
         <li><img src="../../assets/images/hezuo/fq_logo.png"></li>
      </ul>
    </div>
    </div>
    </el-col>
</el-row>
  </div></el-col>
<!-- 招聘 -->
  <el-col :span="8">
  <el-row :gutter="20">
  <el-col><div class="zhaopin">
    <div class="mokuai_title">
      <el-row :gutter="20">
      <el-col><div class="home_title">招聘信息</div></el-col>
      </el-row>
    </div>
     <!-- 为 ECharts 准备一个定义了宽高的 DOM -->
    <div id="main" style="width: 600px;height:400px;"></div>
  </div></el-col>
  </el-row>
  <!-- 合作交流 -->
    <el-row :gutter="20">
  <el-col><div class="jiaoliu">
    <div class="mokuai_title">
      <el-row :gutter="20">
      <el-col :span="4"><div class="home_title">合作交流</div></el-col>
      <el-col :span="20"><div class="home_text">查看更多>></div></el-col>
      </el-row>
      <!-- 信息列表 -->
           <el-table
    :data="tableData"
    height="550"
    style="width: 100%">
    <el-table-column
      prop="shunxu"
      label="序号"
      width="180">
    </el-table-column>
    <el-table-column
      prop="name"
      label="主题"
      width="180">
    </el-table-column>
    <el-table-column
      prop="date"
      label="留言">
    </el-table-column>
        <el-table-column
      prop="address"
      label="状态">
    </el-table-column>
  </el-table>
    </div>
  </div></el-col>
  </el-row>
  </el-col>
</el-row>
</div>

</template>

<script>
// 导入echarts
import echarts from 'echarts'
  export default {
    data() {
      return {
        tableData: [{
          shunxu:'#1',
          date: '2016-05-03',
          name: '王小虎',
          address: '编辑'
        }, {
          date: '2016-05-02',
          shunxu:'#2',
          name: '王小虎',
          address: '编辑'
        }, {
          shunxu:'#3',
          date: '2016-05-04',
          name: '王小虎',
          address: '编辑'
        }, {
          shunxu:'#4',
          date: '2016-05-01',
          name: '王小虎',
          address: '编辑'
        }, {
          shunxu:'#5',
          date: '2016-05-08',
          name: '王小虎',
          address: '编辑'
        }, {
          shunxu:'#6',
          date: '2016-05-06',
          name: '王小虎',
          address: '编辑'
        }, {
          shunxu:'#7',
          date: '2016-05-07',
          name: '王小虎',
          address: '编辑'
        }
        , {
          shunxu:'#7',
          date: '2016-05-07',
          name: '王小虎',
          address: '编辑'
        }
        , {
          shunxu:'#7',
          date: '2016-05-07',
          name: '王小虎',
          address: '编辑'
        }
        , {
          shunxu:'#7',
          date: '2016-05-07',
          name: '王小虎',
          address: '编辑'
        }]
      }
    },
    // 此时页面上的元素已经被渲染完毕
    mounted() {
      // 基于准备好的dom，初始化echarts实例
      var myChart = echarts.init(document.getElementById('main'));
      // 指定图表的配置项和数据
      var option = {
     title: {
    // text: 'Referer of a Website',
    // subtext: 'Fake Data',
    left: 'center'
  },
  tooltip: {
    trigger: 'item'
  },
  legend: {
	top: '50%',
	right: '3%',    //距左边的距离
	orient:'vertical'  //垂直排列
	},
  color : [ '#3AA1FF', '#36CBCB', '#4ECB73', '#FBD437','#EE6565' ],
  series: [
    {
      name: 'Access From',
      type: 'pie',
      //第一个数不能大于第二个数   
	radius: ['35%', '75%'],
      data: [
        { value: 1048, name: '语文' },
        { value: 735, name: '数学' },
        { value: 580, name: '计算机' },
        { value: 484, name: '大数据' },
        { value: 300, name: '西点' }
      ],
      emphasis: {
        itemStyle: {
          shadowBlur: 10,
          shadowOffsetX: 0,
          shadowColor: 'rgba(0, 0, 0, 0.5)'
        }
      },
      itemStyle:{
			borderWidth:3, 
			borderColor:'#fff'
			}
    }
  ]
      };
      
      // 使用刚指定的配置项和数据显示图表。
      option && myChart.setOption(option);
    
    }
  }
</script>

<style  lang="scss" scoped>
.welcome {
    margin: 10px 15px 5px 10px;
    }
 .el-row {
    margin-bottom: 20px;
    &:last-child {
      margin-bottom: 0;
    }
  }
  .bg-purple-dark {
    background: #99a9bf;
  }
  .grid-zhanghao {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 305px;
    min-height: 105px;
    margin-right: 10px;
    border-radius: 8px;
    background:url('../../assets/images/bg_zhanghao.png') no-repeat;
    background-position: 0 center;
    background-size: 100%;
  }
  .bt_icon {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 50px;
      height: 50px;
      margin-left: 15px;
      border-radius: 50%;
      background:rgba(255, 255, 255, 0.5);
    }
    .bt_text {
      display: flex;
      flex-direction: column;
      width: 300px;
      height: 80px;
      margin-left: 30px;
      .bt_data {
        font-size: 48px;
        font-weight: 700;
        color: #fff;
      }
      .bt_title {
        font-size: 20px;
        font-weight: 200;
        color: #fff;
      }
    }
    .grid-news {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 305px;
    min-height: 105px;
    margin-right: 10px;
    border-radius: 8px;
    background:url('../../assets/images/bg_news.png') no-repeat;
    background-position: 0 center;
    background-size: 100%;

  }
    .grid-liuyan {
      display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 305px;
    min-height: 105px;
    margin-right: 10px;
    border-radius: 8px;
    background:url('../../assets/images/bg_liuyan.png') no-repeat;
    background-position: 0 center;
    background-size: 100%;

  }

    .tonggao {
    min-width: 100%;
    min-height: 50px;
    border-radius: 5px;
    line-height: 50px;
    padding: 0 5px 0 40px;
    background: url('../../assets/images/icon/tg_icon.png') no-repeat;
    background-position: 10px center;
    background-color: #fff;
  }
    .news {
      display: flex;
      flex-direction:column;
    min-height: 600px;
    border-radius: 5px;
    background-color: #ffffff;
    .news_title_btn {
      width: 75px;
      color: #fff;
      line-height: 33px;
      text-align: center;
      height: 33px;
      border-radius: 5px;
      margin-right: 15px;
      float: right;
      margin-top: 10px;
      background: #01c2af;
    }
  }
  .home_title {
      font-size: 20px;
      font-weight: 700;
      width: 100px;
      height: 15px;
      margin-top: 10px;
      padding-left: 15px;
      margin-bottom: 15px;
      background-color:#01c2af;
    }
    .home_text {
      font-size: 14px;
      width: 100px;
      height: 50px;
      float: right;
      line-height: 50px;
    } 
    .mokuai_title {
      margin-bottom: 10px;
    }
    .mokuai_contents {
      width: 100%;
      height: 170px;
      background-color: #000;
    }
    .hezuo {
    min-height: 355px;
    border-radius: 5px;
    background-color: #ffffff;
  }
    .hezuo_logo {
      width: 100%;
      height: 150x;
      margin-top: 40px;
    }
    .hezuo_logo ul li  {
      float: left;
      margin-top: 50px;
      width: 200px;
      text-align: center;
    }
    // 招聘信息
    .zhaopin {
    min-width: 600px;
    min-height: 540px;
    border-radius: 5px;
    background-color: #fff;
  }
  // 合作交流
   .jiaoliu {
    min-width: 600px;
    min-height: 455px;
    border-radius: 5px;
    background-color: #fff;
  }
</style>